package com.aaa.rent.service.impl;

import com.aaa.entity.BaseArea;


import com.aaa.rent.dao.BaseAreaDao;
import com.aaa.rent.service.BaseAreaService;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/3/2 09:17
 */
@Service
public class BaseAreaServiceImpl extends ServiceImpl<BaseAreaDao, BaseArea> implements BaseAreaService {
    @Autowired
    private BaseAreaDao baseAreaDao;
    @Override
    public
    Result listName(Integer parentid) {
        List<BaseArea> baseArea = baseAreaDao.selectNameById(parentid);
        return new Result(2000, "添加成功",baseArea);
    }
}
